import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-parent1',
  template:`
    <h2>少年阿鑫有{{names.length}} names</h2>
    <app-child1 *ngFor="let name of names" [name]="name"></app-child1>
  `
})
export class Parent1Component implements OnInit {
  names = ['李','  ','四']

  constructor() { }

  ngOnInit(): void {
  }

}
